package miage.rest.model;

import java.io.Serializable;

/**
 *
 * @author Lou
 */
public class Nationalite implements Serializable {
    private static final long serialVersionUID = 1L;
    private String pays;
    private String idNationalite;

    public Nationalite() {
    }

    public Nationalite(String idNationalite) {
        this.idNationalite = idNationalite;
    }

    public Nationalite(String idNationalite, String pays) {
        this.idNationalite = idNationalite;
        this.pays = pays;
    }

    public String getPays() {
        return pays;
    }

    public void setPays(String pays) {
        this.pays = pays;
    }

    public String getIdNationalite() {
        return idNationalite;
    }

    public void setIdNationalite(String idNationalite) {
        this.idNationalite = idNationalite;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idNationalite != null ? idNationalite.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Nationalite)) {
            return false;
        }
        Nationalite other = (Nationalite) object;
        if ((this.idNationalite == null && other.idNationalite != null) || (this.idNationalite != null && !this.idNationalite.equals(other.idNationalite))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "miage.rest.model.Nationalite[idNationalite=" + idNationalite + "]";
    }

}
